package com.zwj.design.behavior.observer.demo2;

/**
 * @author 张文接
 * @version 1.0
 * @createTime 2024/3/18 23:15
 */
public class App {

    public static void main(String[] args) {
        //主题
        WeatherData weatherData = new WeatherData();
        //观察者
        CurrentConditionsDisplay currentConditionsDisplay = new CurrentConditionsDisplay(weatherData);
        //手动通知
        weatherData.setMeasurements(35,23,23);
        //展示通知效果
        currentConditionsDisplay.display();
    }
}
